package com.ruoyi.application.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 表单数据对象 sys_form_data
 * 
 * @author ruoyi
 * @date 2025-07-05
 */
public class SysFormData extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 表单ID */
    @Excel(name = "表单ID")
    private String formId;

    /** 当前步骤 */
    @Excel(name = "当前步骤")
    private Integer currentStep;

    /** 表单数据(JSON格式) */
    @Excel(name = "表单数据")
    private String formContent;

    /** 表单状态(0进行中 1已提交 2已过期) */
    @Excel(name = "表单状态", readConverterExp = "0=进行中,1=已提交,2=已过期")
    private Integer status;

    /** 过期时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "过期时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date expireTime;

    public void setFormId(String formId) 
    {
        this.formId = formId;
    }

    public String getFormId() 
    {
        return formId;
    }
    public void setCurrentStep(Integer currentStep) 
    {
        this.currentStep = currentStep;
    }

    public Integer getCurrentStep() 
    {
        return currentStep;
    }
    public void setFormContent(String formContent) 
    {
        this.formContent = formContent;
    }

    public String getFormContent() 
    {
        return formContent;
    }
    public void setStatus(Integer status) 
    {
        this.status = status;
    }

    public Integer getStatus() 
    {
        return status;
    }
    public void setExpireTime(Date expireTime) 
    {
        this.expireTime = expireTime;
    }

    public Date getExpireTime() 
    {
        return expireTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("formId", getFormId())
            .append("currentStep", getCurrentStep())
            .append("formContent", getFormContent())
            .append("status", getStatus())
            .append("expireTime", getExpireTime())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
